local youyuan = fk.CreateSkill {
  name = "lingling__youyuan",
}

Fk:loadTranslationTable {
  ["lingling__youyuan"] = "游园",
  [":lingling__youyuan"] = "你可以将♣牌当【韬光养晦】使用。",

  ["#lingling__youyuan"] = "游园：将一张♣牌当【韬光养晦】使用",
}

youyuan:addEffect("viewas", {
  anim_type = "drawcard",
  mute_card = false,
  prompt = "#lingling__youyuan",
  handly_pile = true,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and Fk:getCardById(to_select).suit == Card.Club
  end,
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local card = Fk:cloneCard("ling__hide_capacities")
    card.skillName = youyuan.name
    card:addSubcard(cards[1])
    return card
  end,
  enabled_at_response = function (self, player, response)
    return not response
  end,
})

youyuan:addAI(nil, "vs_skill")

return youyuan
